#include "Model.h"


Model::Model(string name,MeshPtr mesh,ModelInfoPtr s,RenderMode m)
	:RenderObject(COMP_MODEL,name,mesh,m),
	Resource(name),
	m_modelInfo(s),
	m_mesh(mesh)
{
	InitModel();
}


Model::~Model(void)
{
}

void Model::AddedToObject()
{
	RenderObject::AddedToObject();
}

void Model::InitModel()
{
	m_worldMatrix=XMMatrixIdentity();
}

XMMATRIX Model::GetWorldMatrix()
{

	return m_worldMatrix;
}